﻿using System;
using System.Linq;
using System.Text;
using SIE.SCADA.SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("scada_material_record")]
    public partial class scada_material_record
    {
           public scada_material_record(){


           }
           /// <summary>
           /// Desc:
           /// Default:nextval('scada_material_record_id_seq'::regclass)
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
           public int id {get;set;}

           /// <summary>
           /// Desc:物料编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string matcode {get;set;}

           /// <summary>
           /// Desc:物料名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string matname {get;set;}

           /// <summary>
           /// Desc:SN
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string sn {get;set;}

           /// <summary>
           /// Desc:状态
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? state_int {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? createtime {get;set;}

           /// <summary>
           /// Desc:使用时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? endtime {get;set;}

           /// <summary>
           /// Desc:用户ID
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string userid {get;set;}

           /// <summary>
           /// Desc:用户名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string username {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string jobstep_code_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? jobstep_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? index {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string matid {get;set;}

           /// <summary>
           /// Desc:工单SN
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string serial_number_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string mbom {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string jobstep_name_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? Modifytime_Dt {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? Createtime_Dt {get;set;}

           /// <summary>
           /// Desc:工单号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string disidno {get;set;}

           /// <summary>
           /// Desc:扫描源码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string orginalcode {get;set;}

    }
}
